<div class="file-box">
    <app-upload [path]="filePathString" (uploadOk)="uploadOk()"></app-upload>
  <div class="path-box">
    <div class="path-left">
      <a class="path" (click)="getFileList()">根目录</a>
      <span class="line">/</span>
      <ng-container *ngFor="let item of filePath; let i = index">
        <a class="path" (click)="clickPath(item, i)">{{item.name}}</a>
        <span class="line">/</span>
      </ng-container>
    </div>
  </div>
  <div class="file-list">
    <ng-container *ngFor="let item of currentList">
      <div class="dir" *ngIf="item.type === 'dir'" (click)="changePath(item)">
        <img src="../../../assets/images/file.svg" alt="">
        <h3 class="name">{{item.name}}</h3>
      </div>
      <div class="file" *ngIf="item.type !== 'dir'">
        <div class="img-box">
          <img *ngIf="isPic(item.link)" [src]="item.link" [alt]="item.link" [title]="item.link">
          <img *ngIf="!isPic(item.link)" src="../../../assets/images/file_cloud.svg" [alt]="item.link" [title]="item.link">
        </div>
        <p class="name">{{item.name}}</p>
      </div>
    </ng-container>
  </div>

</div>